package org.third.integration.hibernate;

import java.util.Properties;

import org.springframework.jdbc.datasource.DriverManagerDataSource;
import org.springframework.orm.hibernate5.LocalSessionFactoryBean;

public class LocalSessionFactoryBeanTest {
	static String dbUrl;
	static String username;
	static String password;

	public static void main(String[] args) {
		org.springframework.jdbc.datasource.DriverManagerDataSource dataSource = new DriverManagerDataSource(dbUrl,
				username, password);
		LocalSessionFactoryBean sessionFactory = new LocalSessionFactoryBean();
		sessionFactory.setDataSource(dataSource);
		Properties hibernateProperties = new Properties();
		hibernateProperties.setProperty("hibernate.hbm2ddl.auto", "false");
//		hibernateProperties.setProperty("", value)
		sessionFactory.setHibernateProperties(hibernateProperties);
	}

}
